#ifndef EMOJI_H
#define EMOJI_H

#include <QWidget>
#include <QApplication>
#include<QMouseEvent>

namespace Ui {
class emoji;
}

class emoji : public QWidget
{
    Q_OBJECT

public:
    explicit emoji(QWidget *parent = nullptr);
    ~emoji();

private:
    bool m_moveing2=false;//表示窗口是否在鼠标的操作下移动
    bool m_IsComboxNeedChange=false;
    QPoint m_lastPos;//上一次的鼠标位置

protected:
    //用于鼠标拖动窗口的鼠标事件
    void mousePressEvent(QMouseEvent*event);//鼠标摁住
    void mouseMoveEvent(QMouseEvent*event);//鼠标移动
    void mouseReleaseEvent(QMouseEvent*event);//鼠标松开


private slots:
    void on_pushButton_clicked();


private:
    Ui::emoji *ui;
};

#endif // EMOJI_H
